package org.compression.mapper;

import java.util.HashSet;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.model.auth.AccessIPStat;
import org.model.comm.Page;

@Mapper
public interface AccessIPStatMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccessIPStat record);

    int insertSelective(AccessIPStat record);

    AccessIPStat selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccessIPStat record);

    int updateByPrimaryKey(AccessIPStat record);
    
    @Select("select id id,name name,ip_addr ipAddr from t_access_ip_stat")
    public  HashSet<AccessIPStat> getIps();
    
	@Select("select id id,name name,ip_addr ipAddr from t_access_ip_stat limit #{currentPageNum},#{pageSize}")
	public List<AccessIPStat> getPageIps(Page mAccessIPStat);
    
    
}